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
$(document).on('click', '.comment_submit', function(e) { | |
var $this = $(this); | |
var post_id = $this.closest('.box').attr('data-post_id'); | |
var comment = $this.siblings('.comment_form').val(); | |
$.ajax({ | |
type: 'GET', | |
url: 'interactions/facebook.interaction.php', | |
data: { | |
post_id: post_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
import _ from 'lodash'; | |
export const getHBValues = (text) => { | |
const re = /{{[{]?(.*?)[}]?}}/g; | |
const tags = []; | |
let matches; | |
while (Boolean((matches = re.exec(text)))) { | |
if (matches) { | |
tags.push(matches[1]); | |
} |