Skip to content

Commit 7860857

Browse files
authored
Merge pull request #20434 from github/igfoo/fix-typo
javascript: Fix spelling error in documentation
2 parents b797df6 + d0091e1 commit 7860857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/Security/CWE-116/IncompleteMultiCharacterSanitization.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ str.replace(/\.\.\//g, "");
108108
</sample>
109109

110110
<p>
111-
The regular expression attempts to strip out all occurences of <code>/../</code> from <code>str</code>.
111+
The regular expression attempts to strip out all occurrences of <code>/../</code> from <code>str</code>.
112112
This will not work as expected: for the string <code>/./.././</code>, for example, it will remove the single
113113
occurrence of <code>/../</code> in the middle, but the remainder of the string then becomes
114114
<code>/../</code>, which is another instance of the substring we were trying to remove.

0 commit comments

Comments
 (0)