Skip to content

Instantly share code, notes, and snippets.

Avatar

Colton Baker Southern

  • NC, USA
View GitHub Profile
@Southern
Southern / phonenumber.js
Last active Oct 11, 2015
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) {
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...
You can’t perform that action at this time.