(?<Current>^[A-Z]{2}[0-9]{2}[A-Z]{3}$)|(?<Prefix>^[A-Z][0-9]{1,3}[A-Z]{3}$)|(?<Suffix>^[A-Z]{3}[0-9]{1,3}[A-Z]$)|(?<DatelessLongNumberPrefix>^[0-9]{1,4}[A-Z]{1,2}$)|(?<DatelessShortNumberPrefix>^[0-9]{1,3}[A-Z]{1,3}$)|(?<DatelessLongNumberSuffix>^[A-Z]{1,2}[0-9]{1,4}$)|(?<DatelessShortNumberSufix>^[A-Z]{1,3}[0-9]{1,3}$)|(?<DatelessNorthernIreland>^[A-Z]{1,3}[0-9]{1,4}$)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* tooltips */ | |
$( function() | |
{ | |
var targets = $( '[rel~=tooltip]' ), | |
target = false, | |
tooltip = false, | |
title = false; | |
targets.bind( 'mouseenter', function() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Customer.js | |
* | |
* @description :: TODO: You might write a short summary of how this model works and what it represents here. | |
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models | |
*/ | |
module.exports = { | |
attributes: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// find the existing customer or create a new one | |
Customer.findOrCreate({email: customer.email}, customer).exec(function (err, customerFound) { | |
if (err) { | |
sails.log(vehicle.vrm + ': error finding or creating customer'); | |
sails.log(err); | |
return res.serverError(500); | |
} | |
else { | |
sails.log(vehicle.vrm + ": customer ID " + customerFound.id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// find the existing customer or create a new one | |
Customer.findOrCreate({email: customer.email}, customer).exec(function (err, customerFound) { | |
if (err) { | |
sails.log(vehicle.vrm + ': error finding or creating customer'); | |
sails.log(err); | |
return res.serverError(500); | |
} | |
else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
'verify-email': function(req, res) { | |
const kickbox = require('kickbox').client('dc3ecaf32a5dc30397f04c75b1e6e0e7182eda4f9d42c941a7928de9afd33580').kickbox(); | |
if (!req.query.email) return res.send("Email address missing!"); | |
var emailToVerify = req.query.email; |