Skip to content

Instantly share code, notes, and snippets.

View coelhucas's full-sized avatar
:shipit:

Lucas coelhucas

:shipit:
View GitHub Profile
[100%] progress_finish(["progress_finish"], [])
[100%] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: modules/libmodules.osx.tools.64.a(btBroadphaseProxy.osx.tools.64.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: modules/libmodules.osx.tools.64.a(shape_owner_bullet.osx.tools.64.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: modules/libmodules.osx.tools.64.a(aria.osx.tools.64.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: modules/libmodules.osx.tools.64.a(cmac.osx.tools.64.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: modules/libmodules.osx.tools.64.a(ecjpake.osx.tools.64.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/b
function parseString(string) {
const keyRegex = /(\w+\d+):/g;
const valRegex = /:(["']?)(\w+)(\\?.)*?\1/g;
const matchKeys = string.match(keyRegex);
const matchValues = string.match(valRegex);
let result = [];
for (let i = 0; i < matchKeys.length; i++) {
this.fileTransfer.download('https://github.com/janpio/ionic-epubjs/raw/master/src/assets/books/moby-dick.epub', path + 'moby-dick.epub').then(entry => {
this.finishedDownload = true;
let url = entry.toURL();
this.current_book = new Book();
this.current_book.label = "Moby Dick (.epub)";
this.current_book.file = path + 'moby-dick.epub';
})