Skip to content

Instantly share code, notes, and snippets.

View gist:7156147
92% info Uploading: [=============================] 100%
info: Updating app modeista-site
info: Activating snapshot 0.0.1-330 for modeista-site
info: Starting app modeista-site
error: Error running command deploy
error: Errors occured while starting the application
error: Error starting application. This could be a user error.
error: info: Running start for app.
error: info: Cleaning /opt/run
error: info: Fetching application snapshot...
Southern / phonenumber.js
Last active October 11, 2015 06:18
Phone Number Validator
View phonenumber.js
// Remap `exports` to `window` if `exports` doesn't exist.
if (!exports) var exports = window;
// Regex to match numbers to.
var REGEX = /^\(?(?=\d{3})(\d{3})[).\-\s]*(\d{3})[.\-\s]*(\d{4})$/;
String.prototype.replace = (function(orig) {
return function(replace, replacement) {
// Allow arrays to be used.
if (replace instanceof Array) {