UNPKG

mapbox-gl

Version:
11 lines (8 loc) 243 B
'use strict'; function ParsingError(error) { this.error = error; this.message = error.message; const match = error.message.match(/line (\d+)/); this.line = match ? parseInt(match[1], 10) : 0; } module.exports = ParsingError;