fb737d77a66eba5e3302814030da4cd492850441
[platform/framework/web/crosswalk-tizen.git] /
1 define(['../lang/toString'], function(toString){
2     // This pattern is generated by the _build/pattern-removeNonWord.js script
3     var PATTERN = /[^\x20\x2D0-9A-Z\x5Fa-z\xC0-\xD6\xD8-\xF6\xF8-\xFF]/g;
4
5     /**
6      * Remove non-word chars.
7      */
8     function removeNonWord(str){
9         str = toString(str);
10         return str.replace(PATTERN, '');
11     }
12
13     return removeNonWord;
14 });