Skip to content

Fixed typo in PDoc; added missing semicolon #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/prototype/lang/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Object.extend(String.prototype, (function() {
/**
* String#gsub(pattern, replacement) -> String
*
* Returns the string with _every_ occurence of a given pattern replaced by either a
* Returns the string with _every_ occurrence of a given pattern replaced by either a
* regular string, the returned value of a function or a [[Template]] string.
* The pattern can be a string or a regular expression.
*
Expand Down Expand Up @@ -100,7 +100,7 @@ Object.extend(String.prototype, (function() {
}

while (source.length > 0) {
match = source.match(pattern)
match = source.match(pattern);
if (match && match[0].length > 0) {
result += source.slice(0, match.index);
result += String.interpret(replacement(match));
Expand Down Expand Up @@ -431,7 +431,7 @@ Object.extend(String.prototype, (function() {
* Parses a URI-like query string and returns an object composed of
* parameter/value pairs.
*
* This method is realy targeted at parsing query strings (hence the default
* This method is really targeted at parsing query strings (hence the default
* value of`"&"` for the `separator` argument).
*
* For this reason, it does _not_ consider anything that is either before a
Expand Down