Skip to content

Commit

Permalink
modify containsSpecialChar
Browse files Browse the repository at this point in the history
  • Loading branch information
g.satoh committed Jul 12, 2017
1 parent f2271b9 commit 2afc001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/_containsSpecialChar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _ from 'lodash';

export default function _containsSpecialChar(str) {
const spChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?".split("");
const spChars = "!@#$%^&*\\\';,./{}|\":?".split("");
return !_.isEmpty(_.intersection(spChars, str.split('')));
}

0 comments on commit 2afc001

Please sign in to comment.