Skip to content

Commit

Permalink
Merge 69043d0 into 36febeb
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderXL committed Sep 9, 2016
2 parents 36febeb + 69043d0 commit a5bed8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@ node_modules
_site
coverage
docs.json
.idea/
.idea/.name
.idea/misc.xml
.idea/modules.xml
.idea/strman.iml
.idea/vcs.xml
.idea/workspace.xml
.DS_Store
2 changes: 1 addition & 1 deletion src/string.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export {removeSpaces};
const replace = (value, search = '', newvalue = '', caseSensitive = true, multiline = true) => {
var flags = caseSensitive ? 'g' : 'gi';

multiline ? flags + 'm' : flags;
multiline ? flags += 'm' : flags;

return value.replace(new RegExp(search, flags), newvalue);

Expand Down

0 comments on commit a5bed8e

Please sign in to comment.