Grabbed dndbeyond's source code
``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { DEFINITION_KEY_SEPARATOR } from './constants';
|
||||
/**
|
||||
*
|
||||
* @param definitionKey
|
||||
*/
|
||||
export function getDefinitionKeyType(definitionKey) {
|
||||
return definitionKey.split(DEFINITION_KEY_SEPARATOR)[0];
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param definitionKey
|
||||
*/
|
||||
export function getDefinitionKeyId(definitionKey) {
|
||||
return definitionKey.split(DEFINITION_KEY_SEPARATOR)[1];
|
||||
}
|
||||
Reference in New Issue
Block a user