Skip to content

Commit

Permalink
adding puntuation to lexer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Akif Heren authored and Akif Heren committed Jul 18, 2016
1 parent 9803735 commit 9556bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexer.js
Expand Up @@ -15,7 +15,7 @@ var re = {
unblank: /\S/,
email: /[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](?:\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](?:-?\.?[a-zA-Z0-9])*(?:\.[a-zA-Z](?:-?[a-zA-Z0-9])*)+/gi,
urls: /(?:https?:\/\/)(?:[\da-z\.-]+)\.(?:[a-z\.]{2,6})(?:[\/\w\.\-\?#=]*)*\/?/ig,
punctuation: /[\/\.\,\?\!\"\'\:\;\$\(\)\#]/ig,
punctuation: /[\/\.\,\?\!\"\'\:\;\$\(\)\#\’\`]/ig,
time: /(?:[0-9]|0[0-9]|1[0-9]|2[0-3]):(?:[0-5][0-9])\s?(?:[aApP][mM])/ig
}

Expand Down

0 comments on commit 9556bb1

Please sign in to comment.